//
//  SellerDetailBussessTableViewCell.m
//  SmartCoin
//
//  Created by apple on 2018/3/7.
//  Copyright © 2018年 Cynic. All rights reserved.
//

#import "SellerDetailBussessTableViewCell.h"

@implementation SellerDetailBussessTableViewCell
/**
 @property (nonatomic ,retain)UIButton *header;
 @property (nonatomic ,retain)UILabel *namelabel;
 @property (nonatomic ,retain)UILabel *timelabel;
 @property (nonatomic ,retain)UILabel *riselabel;

 */
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    _header = [[UIButton alloc] initWithFrame:CGRectMake(12, 6.5, 40, 40)];
    _header.layer.cornerRadius = 20;
    _header.clipsToBounds = YES;
    _header.backgroundColor = bggrayColor;
    [self.contentView addSubview:_header];
    
    _namelabel = [[UILabel alloc] initWithFrame:CGRectMake(62, 7, 180, 20)];
    _timelabel = [[UILabel alloc] initWithFrame:CGRectMake(62, 28, 220, 18)];
    _namelabel.font = [UIFont systemFontOfSize:14];
    _timelabel.font = [UIFont systemFontOfSize:13];
    _namelabel.textColor = [UIColor blackColor];
    _timelabel.textColor = [CXSinglerModel colorWithHex:@"#999999" alpha:1];
    [self.contentView addSubview:_timelabel];
    [self.contentView addSubview:_namelabel];
    
    _riselabel = [[UILabel alloc] initWithFrame:CGRectMake(cx_wid - 120 - 12, 17, 120, 21)];
    _riselabel.textColor = [CXSinglerModel colorWithHex:@"#0EBF66" alpha:1];
    _riselabel.font = [UIFont systemFontOfSize:15];
    _riselabel.textAlignment = NSTextAlignmentRight;
    [self.contentView addSubview:_riselabel];
    
    UIView *layerview = [[UIView alloc] initWithFrame:CGRectMake(0, 52.5, cx_wid, 0.5)];
    layerview.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.2];
    [self.contentView addSubview:layerview];
    return self;
}

@end
